package org.mebusw.davincicode.vo;

/**
 * As a VO, it used to transferring game data between server and Flex client
 * 
 * @author j1shen
 * @deprecated
 */
public class GameView {

	private int gid;
	private String currPlayerName;
	private String description;
	private int gameState;
	private int playerCount;
	private HandView hands[];
	private int blackInPool;
	private int whiteInPool;

	public GameView() {
	}

	public int getGid() {
		return gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public String getCurrPlayer() {
		return currPlayerName;
	}

	public void setCurrPlayer(String currPlayerName) {
		this.currPlayerName = currPlayerName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getGameState() {
		return gameState;
	}

	public void setGameState(int gameState) {
		this.gameState = gameState;
	}

	public int getPlayerCount() {
		return playerCount;
	}

	public void setPlayerCount(int playerCount) {
		this.playerCount = playerCount;
	}

	public void setHands(HandView hands[]) {
		this.hands = hands;
	}

	public HandView[] getHands() {
		return hands;
	}

	public void setBlackInPool(int blackInPool) {
		this.blackInPool = blackInPool;
	}

	public int getBlackInPool() {
		return blackInPool;
	}

	public void setWhiteInPool(int whiteInPool) {
		this.whiteInPool = whiteInPool;
	}

	public int getWhiteInPool() {
		return whiteInPool;
	}

}

class CardView {
	private int cardId;
	private int value;
	private String Style;

	public CardView() {
	}

	public int getCardId() {
		return cardId;
	}

	public void setCardId(int cardId) {
		this.cardId = cardId;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getStyle() {
		return Style;
	}

	public void setStyle(String style) {
		Style = style;
	}
}

class HandView {
	private String playerName;
	private int state;
	private CardView cards[];

	public HandView() {
	}

	public String getPlayerName() {
		return playerName;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	public CardView[] getCards() {
		return cards;
	}

	public void setCards(CardView[] cards) {
		this.cards = cards;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getState() {
		return state;
	}

}
